/**
 * Created by yoyoyk on 2017/6/6.
 */

import Relay from "react-relay";
export default class getSendDetails extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getSendDetails }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId:this.props.orderId,
                acceptStatus:this.props.acceptStatus,
                recordId:this.props.recordId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on getSendDetailsPayload {
             getSendDetails{
                        userId
                        value
                        errorCode
                        sendResponse{
                            sendDetail{
                                orderId
                                sendDate
                                sendQuantity
                                goodsId
                                remainingQuantity
                                quantity
                                sid
                                goodsSize
                                price
                                recordId
                                goodsName
                                operateDate
                            }
                            styleNo
                        }
                        LogisticsMsgList{
                            logisticsProgressMsg
                            accessoryUrl1
                        }
             }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on getSendDetailsPayload {
                    getSendDetails{
                        userId
                        value
                        errorCode
                        sendResponse{
                            sendDetail{
                                orderId
                                sendDate
                                sendQuantity
                                goodsId
                                remainingQuantity
                                quantity
                                sid
                                goodsSize
                                price
                                recordId
                                goodsName
                                operateDate
                            }
                            styleNo
                        }
                        LogisticsMsgList{
                            logisticsProgressMsg
                            accessoryUrl1
                        }
                    }
                 }
            `]
        }];
    }
}


